package icu.lyt0628;

import java.io.PrintStream;
import java.util.Scanner;

public class Doanload {

    public static void main(String[] args) {

        App app = new App();
        app.connect();

        Scanner scan = new Scanner(System.in);
        PrintStream o = System.out;

        o.println("Please input src file path:  ");
        String src = scan.nextLine();
        o.println("Please input dst file path:  ");
        String dst = scan.nextLine();

        while (!app.exists(src)){
            o.println("Src file " + src + " not existing!!!");
            o.println("reinput: ");
            src = scan.nextLine();
        }
        app.download(src, dst);

        o.println("file downloaded");
        app.release();
    }
}
